$(function () {
    $.ajax({
        url:'http://localhost:8080/back/font/footInfo',
        headers:{'username':localStorage.getItem("loginUser")},
        dataType:'json',
        success:function (data) {
            console.log("底部页面",data)
            setFootInfo(data.data)
        }
    })
})

function setFootInfo(data){

    let val = '';

    data.forEach(function (value,index){

        val+='<div><a href="'+value.titleHref+'">'+value.title+'</a></div>'
        $(".content > div > div:nth-child(1)").html(val)
    })

    $(".content > div > div:nth-child(2)").html(data[0].define);
}